import _ from 'lodash-es'
import { DiyComponent } from '../types'
import type { FormConfigSubmit } from '../../types'
import type { FormConfigBaseForm } from '../BaseForm/config'
import { component as baseFormCoomponent } from '../BaseForm/config'

// 设置属性
export type FormConfigBaseInfo = FormConfigSubmit<FormConfigBaseForm>

// 定义组件
export const component = {
  id: 'BaseInfo',
  name: '基础信息',
  icon: 'ep:document',
  property: {
    id: '',
    name: '表单名称',
    sort: 0,
    description: '',
    configJson: _.cloneDeep(baseFormCoomponent.property)
  }
} as DiyComponent<FormConfigBaseInfo>
